import {Input } from 'antd'
import {baseStyle } from '../baseStyle' 
const String  = (props)=>{
	console.log(33,props);
	let {onChange,otherProps} = props 
	const defaultProps = {...baseStyle,...otherProps}

	const inputChange = (e)=>{
		// console.log(e);
		console.log('inputChange',e.target.value);
		onChange(e.target.value,this	)
	
	}


	return (
		<Input  
		 onChange= {inputChange}
		 {...defaultProps} 
		 showCount={true}
		 />)
}


export default String